Part 1 90th percentile

1.1 ALL station 90th compare

1.2 different YVR data

part 2 scatter plot

2.1 TOP 20 scatter plot between 2 stations

Display the color point in bar

## $Kamloops_vs_Prince_George
## # A tibble: 11 × 2
##     Year unique_count_Kamloops_vs_Prince_George
##    <int>                                  <int>
##  1  1961                                      1
##  2  1971                                      1
##  3  1979                                      1
##  4  1983                                      1
##  5  1998                                      1
##  6  2003                                      1
##  7  2006                                      4
##  8  2007                                      2
##  9  2009                                      1
## 10  2014                                      1
## 11  2021                                      5
## 
## $Kamloops_vs_YVR
## # A tibble: 10 × 2
##     Year unique_count_Kamloops_vs_YVR
##    <int>                        <int>
##  1  1960                            1
##  2  1961                            1
##  3  1990                            1
##  4  1998                            1
##  5  2006                            2
##  6  2009                            4
##  7  2017                            1
##  8  2018                            1
##  9  2021                            5
## 10  2022                            2
## 
## $Kamloops_vs_Kelowna
## # A tibble: 11 × 2
##     Year unique_count_Kamloops_vs_Kelowna
##    <int>                            <int>
##  1  1971                                1
##  2  1979                                2
##  3  1994                                2
##  4  1998                                2
##  5  2003                                1
##  6  2006                                1
##  7  2015                                1
##  8  2018                                1
##  9  2021                                5
## 10  2022                                2
## 11  2023                                1
## 
## $Prince_George_vs_YVR
## # A tibble: 12 × 2
##     Year unique_count_Prince_George_vs_YVR
##    <int>                             <int>
##  1  1942                                 1
##  2  1951                                 1
##  3  1960                                 1
##  4  1961                                 1
##  5  1965                                 1
##  6  1981                                 1
##  7  1983                                 1
##  8  1990                                 3
##  9  1998                                 2
## 10  2006                                 1
## 11  2009                                 2
## 12  2021                                 4
## 
## $Prince_George_vs_Kelowna
## # A tibble: 10 × 2
##     Year unique_count_Prince_George_vs_Kelowna
##    <int>                                 <int>
##  1  1971                                     2
##  2  1979                                     1
##  3  1983                                     1
##  4  1994                                     2
##  5  1998                                     1
##  6  2003                                     1
##  7  2006                                     3
##  8  2007                                     2
##  9  2021                                     5
## 10  2022                                     1
## 
## $YVR_vs_Kelowna
## # A tibble: 10 × 2
##     Year unique_count_YVR_vs_Kelowna
##    <int>                       <int>
##  1  1941                           2
##  2  1990                           1
##  3  1992                           1
##  4  1994                           1
##  5  1998                           1
##  6  2002                           1
##  7  2009                           4
##  8  2020                           1
##  9  2021                           5
## 10  2022                           2
## $Kamloops_vs_Prince_George
## # A tibble: 11 × 2
##    YearMonth unique_count_Kamloops_vs_Prince_George
##    <chr>                                      <int>
##  1 1961-7                                         1
##  2 1971-7                                         1
##  3 1979-7                                         1
##  4 1983-5                                         1
##  5 1998-7                                         1
##  6 2003-7                                         1
##  7 2006-7                                         4
##  8 2007-7                                         2
##  9 2009-7                                         1
## 10 2014-7                                         1
## 11 2021-6                                         5
## 
## $Kamloops_vs_YVR
## # A tibble: 10 × 2
##    YearMonth unique_count_Kamloops_vs_YVR
##    <chr>                            <int>
##  1 1960-8                               1
##  2 1961-7                               1
##  3 1990-8                               1
##  4 1998-7                               1
##  5 2006-7                               2
##  6 2009-7                               4
##  7 2017-8                               1
##  8 2018-8                               1
##  9 2021-6                               5
## 10 2022-7                               2
## 
## $Kamloops_vs_Kelowna
## # A tibble: 12 × 2
##    YearMonth unique_count_Kamloops_vs_Kelowna
##    <chr>                                <int>
##  1 1971-7                                   1
##  2 1979-7                                   2
##  3 1994-7                                   2
##  4 1998-7                                   1
##  5 1998-8                                   1
##  6 2003-7                                   1
##  7 2006-7                                   1
##  8 2015-6                                   1
##  9 2018-8                                   1
## 10 2021-6                                   5
## 11 2022-7                                   2
## 12 2023-8                                   1
## 
## $Prince_George_vs_YVR
## # A tibble: 12 × 2
##    YearMonth unique_count_Prince_George_vs_YVR
##    <chr>                                 <int>
##  1 1942-7                                    1
##  2 1951-7                                    1
##  3 1960-8                                    1
##  4 1961-7                                    1
##  5 1965-7                                    1
##  6 1981-8                                    1
##  7 1983-5                                    1
##  8 1990-8                                    3
##  9 1998-7                                    2
## 10 2006-7                                    1
## 11 2009-7                                    2
## 12 2021-6                                    4
## 
## $Prince_George_vs_Kelowna
## # A tibble: 11 × 2
##    YearMonth unique_count_Prince_George_vs_Kelowna
##    <chr>                                     <int>
##  1 1971-7                                        1
##  2 1971-8                                        1
##  3 1979-7                                        1
##  4 1983-5                                        1
##  5 1994-7                                        2
##  6 1998-7                                        1
##  7 2003-7                                        1
##  8 2006-7                                        3
##  9 2007-7                                        2
## 10 2021-6                                        5
## 11 2022-7                                        1
## 
## $YVR_vs_Kelowna
## # A tibble: 10 × 2
##    YearMonth unique_count_YVR_vs_Kelowna
##    <chr>                           <int>
##  1 1941-7                              2
##  2 1990-8                              1
##  3 1992-6                              1
##  4 1994-7                              1
##  5 1998-7                              1
##  6 2002-6                              1
##  7 2009-7                              4
##  8 2020-8                              1
##  9 2021-6                              5
## 10 2022-7                              2

2.2 TOP 20-35 scatter plot between 2 stations

Display the color point in bar

## $Kamloops_vs_Prince_George
## # A tibble: 13 × 2
##     Year unique_count_Kamloops_vs_Prince_George
##    <int>                                  <int>
##  1  1960                                      1
##  2  1965                                      1
##  3  1969                                      1
##  4  1971                                      1
##  5  1981                                      3
##  6  1994                                      2
##  7  1998                                      1
##  8  2007                                      1
##  9  2009                                      1
## 10  2013                                      1
## 11  2014                                      1
## 12  2018                                      1
## 13  2022                                      2
## 
## $Kamloops_vs_YVR
## # A tibble: 14 × 2
##     Year unique_count_Kamloops_vs_YVR
##    <int>                        <int>
##  1  1951                            1
##  2  1967                            1
##  3  1983                            1
##  4  1994                            2
##  5  1996                            1
##  6  1998                            2
##  7  2006                            1
##  8  2009                            1
##  9  2014                            1
## 10  2017                            1
## 11  2018                            1
## 12  2020                            1
## 13  2022                            2
## 14  2023                            1
## 
## $Kamloops_vs_Kelowna
## # A tibble: 12 × 2
##     Year unique_count_Kamloops_vs_Kelowna
##    <int>                            <int>
##  1  1971                                2
##  2  1975                                1
##  3  1998                                1
##  4  2003                                1
##  5  2004                                1
##  6  2006                                1
##  7  2008                                2
##  8  2009                                1
##  9  2015                                2
## 10  2018                                1
## 11  2021                                1
## 12  2022                                3
## 
## $Prince_George_vs_YVR
## # A tibble: 14 × 2
##     Year unique_count_Prince_George_vs_YVR
##    <int>                             <int>
##  1  1942                                 1
##  2  1960                                 1
##  3  1969                                 2
##  4  1971                                 1
##  5  1990                                 1
##  6  1998                                 1
##  7  2006                                 1
##  8  2007                                 1
##  9  2009                                 2
## 10  2013                                 2
## 11  2018                                 1
## 12  2021                                 1
## 13  2022                                 1
## 14  2023                                 1
## 
## $Prince_George_vs_Kelowna
## # A tibble: 12 × 2
##     Year unique_count_Prince_George_vs_Kelowna
##    <int>                                 <int>
##  1  1944                                     1
##  2  1961                                     1
##  3  1965                                     1
##  4  1971                                     1
##  5  1975                                     1
##  6  1981                                     3
##  7  1987                                     1
##  8  1992                                     1
##  9  1998                                     2
## 10  2006                                     2
## 11  2009                                     2
## 12  2015                                     1
## 
## $YVR_vs_Kelowna
## # A tibble: 11 × 2
##     Year unique_count_YVR_vs_Kelowna
##    <int>                       <int>
##  1  1960                           1
##  2  1961                           2
##  3  1967                           1
##  4  1971                           4
##  5  1985                           1
##  6  1987                           1
##  7  1994                           1
##  8  1998                           2
##  9  2009                           2
## 10  2018                           1
## 11  2022                           1
## $Kamloops_vs_Prince_George
## # A tibble: 13 × 2
##    YearMonth unique_count_Kamloops_vs_Prince_George
##    <chr>                                      <int>
##  1 1960-8                                         1
##  2 1965-7                                         1
##  3 1969-6                                         1
##  4 1971-7                                         1
##  5 1981-8                                         3
##  6 1994-7                                         2
##  7 1998-7                                         1
##  8 2007-7                                         1
##  9 2009-7                                         1
## 10 2013-7                                         1
## 11 2014-7                                         1
## 12 2018-7                                         1
## 13 2022-7                                         2
## 
## $Kamloops_vs_YVR
## # A tibble: 14 × 2
##    YearMonth unique_count_Kamloops_vs_YVR
##    <chr>                            <int>
##  1 1951-7                               1
##  2 1967-8                               1
##  3 1983-5                               1
##  4 1994-7                               2
##  5 1996-7                               1
##  6 1998-7                               2
##  7 2006-7                               1
##  8 2009-7                               1
##  9 2014-7                               1
## 10 2017-8                               1
## 11 2018-7                               1
## 12 2020-8                               1
## 13 2022-7                               2
## 14 2023-7                               1
## 
## $Kamloops_vs_Kelowna
## # A tibble: 15 × 2
##    YearMonth unique_count_Kamloops_vs_Kelowna
##    <chr>                                <int>
##  1 1971-7                                   1
##  2 1971-8                                   1
##  3 1975-7                                   1
##  4 1998-7                                   1
##  5 2003-7                                   1
##  6 2004-8                                   1
##  7 2006-7                                   1
##  8 2008-6                                   1
##  9 2008-8                                   1
## 10 2009-7                                   1
## 11 2015-6                                   1
## 12 2015-7                                   1
## 13 2018-7                                   1
## 14 2021-7                                   1
## 15 2022-7                                   3
## 
## $Prince_George_vs_YVR
## # A tibble: 15 × 2
##    YearMonth unique_count_Prince_George_vs_YVR
##    <chr>                                 <int>
##  1 1942-8                                    1
##  2 1960-7                                    1
##  3 1969-6                                    2
##  4 1971-7                                    1
##  5 1990-8                                    1
##  6 1998-7                                    1
##  7 2006-7                                    1
##  8 2007-7                                    1
##  9 2009-7                                    2
## 10 2013-6                                    1
## 11 2013-7                                    1
## 12 2018-7                                    1
## 13 2021-8                                    1
## 14 2022-7                                    1
## 15 2023-7                                    1
## 
## $Prince_George_vs_Kelowna
## # A tibble: 12 × 2
##    YearMonth unique_count_Prince_George_vs_Kelowna
##    <chr>                                     <int>
##  1 1944-7                                        1
##  2 1961-7                                        1
##  3 1965-7                                        1
##  4 1971-7                                        1
##  5 1975-7                                        1
##  6 1981-8                                        3
##  7 1987-7                                        1
##  8 1992-6                                        1
##  9 1998-7                                        2
## 10 2006-7                                        2
## 11 2009-7                                        2
## 12 2015-7                                        1
## 
## $YVR_vs_Kelowna
## # A tibble: 12 × 2
##    YearMonth unique_count_YVR_vs_Kelowna
##    <chr>                           <int>
##  1 1960-8                              1
##  2 1961-7                              2
##  3 1967-8                              1
##  4 1971-7                              2
##  5 1971-8                              2
##  6 1985-7                              1
##  7 1987-6                              1
##  8 1994-7                              1
##  9 1998-7                              2
## 10 2009-7                              2
## 11 2018-8                              1
## 12 2022-7                              1

2.3 correlation between scatter plot of YVR_era5 vs YVR temp station.

Fit a Linear Model Generate 95% Prediction Intervals as reference lines

Part 3: line segment plot

3.1 line segment for 4 temp station, 3 day HW

YVR: 1937-2024 Prince_George: 1942-2024 Kamloops: 1951-2024 Kelowna: 1899-2024 #### line segment 3 day

##        begin        end starttemp endtemp year month
## 1 1937-03-03 1937-03-05      14.4    14.4 1937     3
## 2 1937-10-27 1937-10-29      15.6    17.2 1937    10
## 3 1937-11-20 1937-11-22      11.7    12.8 1937    11
## 4 1937-12-11 1937-12-14      11.1    12.8 1937    12
## 5 1938-05-19 1938-05-24      20.6    23.3 1938     5
## 6 1939-03-21 1939-03-23      17.8    14.4 1939     3

3.2 line segment for 4 temp station, 5 day HW

YVR: 1937-2024 Prince_George: 1942-2024 Kamloops: 1951-2024 Kelowna: 1899-2024 #### line segment 5 day

##        begin        end starttemp endtemp year month
## 1 1937-03-03 1937-03-05      14.4    14.4 1937     3
## 2 1937-10-27 1937-10-29      15.6    17.2 1937    10
## 3 1937-11-20 1937-11-22      11.7    12.8 1937    11
## 4 1937-12-11 1937-12-14      11.1    12.8 1937    12
## 5 1938-05-19 1938-05-24      20.6    23.3 1938     5
## 6 1939-03-21 1939-03-23      17.8    14.4 1939     3

3.3 line segment 2 yvr compare, for HW over 3 days

##        begin        end starttemp endtemp year month
## 1 1937-03-03 1937-03-05      14.4    14.4 1937     3
## 2 1937-10-27 1937-10-29      15.6    17.2 1937    10
## 3 1937-11-20 1937-11-22      11.7    12.8 1937    11
## 4 1937-12-11 1937-12-14      11.1    12.8 1937    12
## 5 1938-05-19 1938-05-24      20.6    23.3 1938     5
## 6 1939-03-21 1939-03-23      17.8    14.4 1939     3

3.4 3 temp stations vs YVR_30_year_based, for HW last 3 day

##        begin        end starttemp endtemp year month
## 1 1937-03-03 1937-03-05      14.4    14.4 1937     3
## 2 1937-10-27 1937-10-29      15.6    17.2 1937    10
## 3 1937-11-20 1937-11-22      11.7    12.8 1937    11
## 4 1937-12-11 1937-12-14      11.1    12.8 1937    12
## 5 1938-05-19 1938-05-24      20.6    23.3 1938     5
## 6 1939-03-21 1939-03-23      17.8    14.4 1939     3

Part 4: Excel table summary for temp diff